//This code was created with the help of Cairngorm Creator by Tyler Beck.
//The portions of this document created by Cairngorm Creator 
//are provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR 
//CONDITIONS OF ANY KIND, either express or implied.
//========================================================



package net.optix.ip.vo
{
	public class ValueVO
	{
		public var auctionID:int	=	0;
		public var inventionID:int	=	0;
		public var auction:Number	=	0;
		
		public var area:int			=	0;
		public var definition:String=	"";
		public var rev:Number		=	0;
		public var tam:Number		=	0;
		public var sam:int			=	0;
		public var impact:int		=	0;
		public var grow:int			=	0;
		
		
		public var asp:Number		=	0;
		public var ca:Number		=	0;
		public var pa:Number		=	0;
		public var devcost:Number	=	0;
		public var altad:Number		=	0;
		public var funcad:int		=	0;
		public var samepb:int		=	0;
		public var pat1pb:int		=	0;
		public var pat2pb:int		=	0;
		public var blk1pb:int		=	0;
		public var blk2pb:int		=	0;
		
		public static function purseValue(value:XML):ValueVO
		{
			var vo:ValueVO	=	new ValueVO();
			
			try
			{
				vo.auctionID		=	int(value.AuctionID);
				vo.inventionID		=	int(value.inventionID);
				vo.auction			=	int(value.Valuation);
				
				vo.area				=	value.Area;
				vo.definition		=	value.Definition;
				vo.rev				=	Number(value.Rev);
				vo.sam				=	int(value.Sam);
				vo.impact			=	int(value.Impact);
				vo.grow				=	int(value.Grow);
				
				vo.tam				=	Number(value.Tam);
				vo.asp				=	Number(value.Asp);
				vo.ca				=	Number(value.Ca);
				vo.pa				=	Number(value.Pa);
				vo.devcost			=	Number(value.Devcost);
				vo.altad			=	Number(value.Altad);
				
				vo.funcad			=	int(value.Funcad);
				vo.samepb			=	int(value.Samepb);
				vo.pat1pb			=	int(value.Pat1pb);
				vo.pat2pb			=	int(value.Pat2pb);
				vo.blk1pb			=	int(value.Blk1pb);
				vo.blk2pb			=	int(value.Blk2pb);
			}
			catch(error:Error){}
			
			return vo;
		}
	}
}